package com.csun.cmny.provider.model.dto.fallradar;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2020-06-18 10:16
 * @Description:
 */
@Data
public class BindFallRadarLocationDto {


    private static final long serialVersionUID = -6112835378373675118L;

    /**
     * 设备Id
     */
    @NotNull(message = "{device.id.null}")
    private Long deviceId;

    /**
     * 设备绑定位置
     */
    private String location;

    /**
     * 设备绑定类型 0-自定义 1-老人 2-床位 3-房间
     */
    @NotNull(message = "{csun.door.location.bind.type.null}")
    @Range(min = 0, max = 3, message = "{csun.door.location.bind.type.range}")
    private Integer bindType;

    /**
     * 老人Id
     */
    private Integer oldmanId;

    /**
     * 老人姓名
     */
    private String oldmanName;

    /**
     * 床位Id
     */
    private Integer bedId;

    /**
     * 房间Id
     */
    private Integer roomId;
}
